package com.ymttest.database.sharding.db.ext.model;

import java.util.Date;

public class OrderStatusLogPo {
    /**
     * id BIGINT(19) 必填<br>
     * 主键Id
     */
    private Long id;

    /**
     * order_id BIGINT(19) 必填<br>
     * 订单号
     */
    private Long orderId;

    /**
     * operator BIGINT(19) 必填<br>
     * 操作人Id
     */
    private Long operator;

    /**
     * order_status INTEGER(10) 必填<br>
     * 订单状态
     */
    private Integer orderStatus;

    /**
     * memo VARCHAR(500)<br>
     * 操作备注
     */
    private String memo;

    /**
     * add_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
     * 新增时间
     */
    private Date addTime;

    /**
     * id BIGINT(19) 必填<br>
     * 获得 主键Id
     */
    public Long getId() {
        return id;
    }

    /**
     * id BIGINT(19) 必填<br>
     * 设置 主键Id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * order_id BIGINT(19) 必填<br>
     * 获得 订单号
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * order_id BIGINT(19) 必填<br>
     * 设置 订单号
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * operator BIGINT(19) 必填<br>
     * 获得 操作人Id
     */
    public Long getOperator() {
        return operator;
    }

    /**
     * operator BIGINT(19) 必填<br>
     * 设置 操作人Id
     */
    public void setOperator(Long operator) {
        this.operator = operator;
    }

    /**
     * order_status INTEGER(10) 必填<br>
     * 获得 订单状态
     */
    public Integer getOrderStatus() {
        return orderStatus;
    }

    /**
     * order_status INTEGER(10) 必填<br>
     * 设置 订单状态
     */
    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    /**
     * memo VARCHAR(500)<br>
     * 获得 操作备注
     */
    public String getMemo() {
        return memo;
    }

    /**
     * memo VARCHAR(500)<br>
     * 设置 操作备注
     */
    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

    /**
     * add_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
     * 获得 新增时间
     */
    public Date getAddTime() {
        return addTime;
    }

    /**
     * add_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
     * 设置 新增时间
     */
    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderId=").append(orderId);
        sb.append(", operator=").append(operator);
        sb.append(", orderStatus=").append(orderStatus);
        sb.append(", memo=").append(memo);
        sb.append(", addTime=").append(addTime);
        sb.append("]");
        return sb.toString();
    }
}